﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RunUOGenerator
{
    public partial class BaseTabControl : UserControl
    {
        private string _Attribute = "";
        private string _Value = "";
        private EventArgs eventArgs = new EventArgs();

        public event EventHandler ValueChanged;

        public BaseTabControl()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Sets or gets the width of this control.
        /// </summary>
        public virtual new int Width
        {
            set
            {
                this.Size = new Size(value, this.Size.Height);
            }
            get { return this.Size.Width; }
        }

        /// <summary>
        /// Sets or gets the Attribute assigned to this control.
        /// </summary>
        public virtual string Attribute
        {
            set
            {
                _Attribute = value;
            }
            get { return _Attribute; }
        }

        /// <summary>
        /// Sets or gets the Value of this control.
        /// </summary>
        public virtual string Value
        {
            set
            {
                _Value = value;
                //ValueChanged(this, eventArgs);
            }
            get { return _Value; }
        }
    }
}
